package com.ftg.learn.chapter08.pattern.proxy.defendant1;

/**
 * 律师
 * 代理模式
 *叫静态代理
 * @author lijiaxin
 * @version 1.0
 * @date 2023/8/4 8:59
 */
//@AllArgsConstructor
public class LawyerProxy implements Sayinterface {

    private Defendant d;
    public LawyerProxy(Defendant d){
        this.d=d;
    }

    @Override
    public void say() {
        d.say();
        System.out.println("从现在开始你一切要听我的");
        System.out.println("你要这样.......");
    }
}
